home *** CD-ROM | disk | FTP | other *** search
/ Power Utilities / Power Utilities.iso / utility / pro202 / install.bat < prev    next >
Encoding:
DOS Batch File  |  1992-10-15  |  3.6 KB  |  70 lines

  1. Echo Off
  2. For %%a in (A: B: C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:) do if .%1==.%%a goto OKDrive
  3. For %%a in (a: b: c: d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z:) do if .%1==.%%a goto OKDrive
  4. GoTo NoDrive
  5. :OKDrive
  6. If Not .%2==. GoTo Install
  7. Echo ╔═══════════════════════════════════════════════════════╗
  8. Echo ║                   W A R N I N G                       ║
  9. Echo ║                                                       ║
  10. Echo ║  You did not specify a directory where you want       ║
  11. Echo ║  EasyChart installed. EasyChart will be installed     ║
  12. Echo ║  in the default directory on drive %1. If you do not  ║
  13. Echo ║  want this to happen, you should press Ctrl-C now.    ║
  14. Echo ║                                                       ║
  15. Echo ╚═══════════════════════════════════════════════════════╝
  16. Pause
  17. :Install
  18. If Not Exist EZC.EXE GoTo NoSoft
  19. If .%2==. GoTo SkipMD
  20. If .%2==.\ GoTo SkipMD
  21. Echo ╔═══════════════════════════════════════════════════════╗
  22. Echo ║                                                       ║
  23. Echo ║  The installation procedure will now attempt to make  ║
  24. Echo ║  the directory you specified.  If you receive the     ║
  25. Echo ║  message "Unable to create directory" this is ok.     ║
  26. Echo ║                                                       ║
  27. Echo ╚═══════════════════════════════════════════════════════╝
  28. MkDir %1%2
  29. :SkipMD
  30. Echo ╔═════════════════════════════════════════════════════════╗
  31. Echo ║                                                         ║
  32. Echo ║  EasyChart and all its associated files will be copied. ║
  33. Echo ║                                                         ║
  34. Echo ╚═════════════════════════════════════════════════════════╝
  35. Copy *.* %1%2/v
  36. Echo ╔═════════════════════════════════════════════════════════╗
  37. Echo ║                                                         ║
  38. Echo ║  If you did not receive the message "Insufficient disk  ║
  39. Echo ║  space", the EasyChart installation is complete.        ║
  40. Echo ║                                                         ║
  41. Echo ╚═════════════════════════════════════════════════════════╝
  42. GoTo Finish
  43. :NoDrive
  44. Echo ╔══════════════════════════════════════════════════════╗
  45. Echo ║                                                      ║
  46. Echo ║  No drive was specified on the INSTALL command. The  ║
  47. Echo ║  syntax for the INSTALL command is:                  ║
  48. Echo ║                                                      ║
  49. Echo ║   INSTALL [drive:] [\directory]                      ║
  50. Echo ║                                                      ║
  51. Echo ║    where:  [drive:] - is the drive where EasyChart   ║
  52. Echo ║                       will be installed.             ║
  53. Echo ║                                                      ║
  54. Echo ║        [\directory] - is the directory where         ║
  55. Echo ║                       EasyChart will be installed.   ║
  56. Echo ║                                                      ║
  57. Echo ║     for example:  INSTALL C: \EZC                    ║
  58. Echo ║                                                      ║
  59. Echo ╚══════════════════════════════════════════════════════╝
  60. GoTo Finish
  61. :NoSoft
  62. Echo ╔═════════════════════════════════════════════════╗
  63. Echo ║                                                 ║
  64. Echo ║  EZC.EXE was not found on the default drive.    ║
  65. Echo ║  Check that the default drive is set where      ║
  66. Echo ║  the installation diskette is located.          ║
  67. Echo ║                                                 ║
  68. Echo ╚═════════════════════════════════════════════════╝
  69. :Finish
  70.